package com.cbwl.eoas.common.framework.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
@ApiModel("分页封装对象")
public class PageRequest implements Serializable {

	private static final long serialVersionUID = -6116467434333124567L;

	@ApiModelProperty("当前页码")
	private int page = 1;

	@ApiModelProperty("页面可显示行数")
	private int rows = 10;

	@ApiModelProperty("用于排序的列名")
	private String sidx;

	@ApiModelProperty("排序的方式desc/asc")
	private String sord;

	@ApiModelProperty(" 是否是搜索请求")
	private boolean search;

	@ApiModelProperty("已经发送的请求的次数")
	private String nd;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		page = (page/rows)+1;
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSidx() {
		return sidx;
	}

	public void setSidx(String sidx) {
		this.sidx = sidx;
	}

	public String getSord() {
		return sord;
	}

	public void setSord(String sord) {
		this.sord = sord;
	}

	public boolean isSearch() {
		return search;
	}

	public void setSearch(boolean search) {
		this.search = search;
	}

	public String getNd() {
		return nd;
	}

	public void setNd(String nd) {
		this.nd = nd;
	}
}
